<div class="hbox hbox-auto-xs hbox-auto-sm" ng-controller="CategoryController">
	<div class="col w-lg bg-light b-r bg-auto">
		<button ng-click="load()" class="btn btn-default btn-sm">
			<i class="fa fa-fw m-r-xs fa-refresh"></i> Load
		</button>
		<button ng-click="add()" class="btn btn-success btn-sm">
			<i class="fa fa-fw m-r-xs fa-plus"></i> Add
		</button>
		<div class="b-a bg-light dk r r-2x">
			<span ng-if="doing_async">...loading...</span>
			<abn-tree tree-data="my_data" tree-control="my_tree" on-select="info(branch)" expand-level="2" initial-selection="Granny Smith"
				icon-leaf="fa fa-file-o" icon-expand="fa fa-plus" icon-collapse="fa fa-minus"> </abn-tree>
		</div>
	</div>
	<div class="col">
		<div class="wrapper-md">
			<div class="panel panel-default">
				<div class="panel-heading font-bold">{{category.name}}</div>
				<div class="panel-body">
					<form role="form">
						<div class="form-group">
							<label>Code</label> <input ng-model="category.code" class="form-control">
						</div>
						<div class="form-group">
							<label>Name</label> <input ng-model="category.name" class="form-control">
						</div>
						<div class="form-group">
							<label>status</label> <input ng-model="category.status" class="form-control">
						</div>
						<div class="form-group">
							<label>sort</label><input id="slider" ui-jq="slider" ng-model="category.sort" ui-options="{min:0,max:20,step:1,value:{{category.sort || 0}}}"
								class="slider slider-horizontal form-control" type="text">{{category.sort}}
						</div>
						<div class="form-group">
							<label>cgtp</label> <input ng-model="category.cgtp" class="form-control">
						</div>
						<div class="form-group">
							<label>atp</label> <input ng-model="category.atp" class="form-control">
						</div>
						<div class="form-group">
							<label>content</label> <input ng-model="category.content" class="form-control">
						</div>
						<div class="form-group">
							<label>memo</label> <input ng-model="category.memo" class="form-control">
						</div>
						<button type="submit" ng-click="save()" class="btn btn-sm btn-primary">Submit</button>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>